package com.ec.common.exception;

import com.ec.common.enumeration.BusinessExceptionEnum;
import lombok.Getter;

@Getter
public class BusinessException extends RuntimeException{
    private String message; // 异常信息

    public BusinessException(BusinessExceptionEnum businessExceptionEnum){
        this.message = businessExceptionEnum.getMessage();
    }
}
